package com.frank.app;

import android.app.Application;

/**
 * Created by fanxiaole on 17/2/24.
 *
 * 单例模式的application
 */

public class App extends Application {


    private static App app = null;

    public static App getInstance(){
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
    }
}
